<h1>Comments List</h1>

<table>
  <thead>
    <tr>
      <th>Author</th>
      <th>Comment</th>
      <th>Created at</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($comments as $comment): ?>
      <tr>
        <td><?php echo $comment->getName() ?></td>
        <td><?php echo $comment->getComment() ?></td>
        <td><?php echo $comment->getCreatedAt() ?></td>
      </tr>
    <?php endforeach; ?>
  </tbody>
</table>
